export default class layout {
    constructor() {

    }
    static create(record){
        let object=new layout();
        // if(!!record){
        //     object.setRecord(record);
        // };
        return object;
    }
    static defaultLayout(){
        return {
            css: "gantt_container",
            rows: [
                {
                    cols: [// layout for default Grid and Timeline
                        {view: "grid", group:"grids", scrollY: "scrollVer"},
                        {resizer: true, width: 1},
                        {view: "timeline", scrollX: "scrollHor", scrollY: "scrollVer"},
                        {view: "scrollbar", id: "scrollVer", group:"vertical"}
                    ],
                    gravity:2
                },
                { resizer: true, width: 1},
                {
                    // layout for Grid and Timeline of resource panel
                    // config: resourceConfig, // config for Grid and Timeline
                    cols: [
                        {view: "resourceGrid", group:"grids", width: 435, scrollY:"resourceVScroll"},
                        {resizer: true, width: 1},
                        {view: "resourceTimeline", scrollX: "scrollHor", scrollY:"resourceVScroll"},
                        {view: "scrollbar", id: "resourceVScroll", group:"vertical"}
                    ],
                    gravity:1
                },
                {view: "scrollbar", id: "scrollHor"}
            ]
        }
    }
}